﻿function GetPage(current, page, count) {
    var curr = (current % count);
    if (curr != 0) {
        page = page - curr;
    }
    return current + page;
}